package service.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import service.edu.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import service.edu.entity.vo.CourseInfo;
import service.edu.entity.vo.CoursePublish;
import service.edu.entity.vo.IndexCourseAll;
import service.edu.entity.vo.IndexCourseVo;

import java.util.HashMap;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author diao
 * @since 2020-08-05
 */
public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfo courseInfo);

    CourseInfo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfo courseInfo);

    CoursePublish getCoursePublishInfo(String courseId);

    void removeCourse(String courseId);

    HashMap<String, Object> getIndexCourseListByCondition(Page<Course> page, IndexCourseVo indexCourseVo);

    IndexCourseAll getIndexCourseInfoByCourseId(String courseId);

    String queryCourseByLikeName(String courseName);
}
